package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 smart_equipment
 * 
 * @author minwei
 * @date 2022-04-07
 */
public class SmartEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 注释 */
    @Excel(name = "注释")
    private String notes;

    /** 组织机构编号 */
    @Excel(name = "组织机构编号")
    private String organizationId;

    /** 创建人编号 */
    @Excel(name = "创建人编号")
    private String createUserId;

    /** 创建日期 */
    @Excel(name = "创建日期")
    private String createDate;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String type;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 设备价值 */
    @Excel(name = "设备价值")
    private String price;

    /** 设备安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installDate;

    /** 设备折旧时间 */
    @Excel(name = "设备折旧时间")
    private String oldTime;

    /** 设备折旧方式 */
    @Excel(name = "设备折旧方式")
    private String oldFunction;

    /** 设备折旧方式 */
    @Excel(name = "设备折旧方式")
    private String maker;

    /** 生产班组ID */
    @Excel(name = "生产班组ID")
    private String productGroup;

    /** 生产班组ID */
    @Excel(name = "生产班组ID")
    private String image;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String state;

    /** 所在区域ID */
    @Excel(name = "所在区域ID")
    private String areaId;

    /** 硬件版本号 */
    @Excel(name = "硬件版本号")
    private String version;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String code;

    /** 设备PN号 */
    @Excel(name = "设备PN号")
    private String pn;

    /** 设备描述 */
    @Excel(name = "设备描述")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setOrganizationId(String organizationId) 
    {
        this.organizationId = organizationId;
    }

    public String getOrganizationId() 
    {
        return organizationId;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setCreateDate(String createDate) 
    {
        this.createDate = createDate;
    }

    public String getCreateDate() 
    {
        return createDate;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setInstallDate(Date installDate) 
    {
        this.installDate = installDate;
    }

    public Date getInstallDate() 
    {
        return installDate;
    }
    public void setOldTime(String oldTime) 
    {
        this.oldTime = oldTime;
    }

    public String getOldTime() 
    {
        return oldTime;
    }
    public void setOldFunction(String oldFunction) 
    {
        this.oldFunction = oldFunction;
    }

    public String getOldFunction() 
    {
        return oldFunction;
    }
    public void setMaker(String maker) 
    {
        this.maker = maker;
    }

    public String getMaker() 
    {
        return maker;
    }
    public void setProductGroup(String productGroup) 
    {
        this.productGroup = productGroup;
    }

    public String getProductGroup() 
    {
        return productGroup;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setAreaId(String areaId) 
    {
        this.areaId = areaId;
    }

    public String getAreaId() 
    {
        return areaId;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPn(String pn) 
    {
        this.pn = pn;
    }

    public String getPn() 
    {
        return pn;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("notes", getNotes())
            .append("organizationId", getOrganizationId())
            .append("createUserId", getCreateUserId())
            .append("createDate", getCreateDate())
            .append("type", getType())
            .append("model", getModel())
            .append("price", getPrice())
            .append("installDate", getInstallDate())
            .append("oldTime", getOldTime())
            .append("oldFunction", getOldFunction())
            .append("maker", getMaker())
            .append("productGroup", getProductGroup())
            .append("image", getImage())
            .append("state", getState())
            .append("areaId", getAreaId())
            .append("version", getVersion())
            .append("code", getCode())
            .append("pn", getPn())
            .append("description", getDescription())
            .toString();
    }
}
